package cn.itsource.pet.mapper;

import cn.itsource.pet.domain.PetType;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * spring生成代理mapper实现
 *
 * Mapper映射器
 */
public interface PetTypeMapper extends Mapper<PetType> {
    @Select("select id,name,description,pid parentId from t_pet_type")
    List<PetType> findAll();
    //基础的curd方法由继承得到

    //查询所有的宠物类型
}
